<?php defined('SYSPATH') or die('No direct script access.'); ?>

<h1>Create New Category</h1>

<?php echo Form::open('category/save/'.$category->id); ?>
	<?php echo Form::label('parent_category');?>	
	<?php echo Form::select('parent_category_id', $root_categories, $category->parent_category->id); ?>
	<br>
	<?php echo Form::label('name', 'Category Name'); ?>
	<?php echo Form::input('name', $category->name); ?>
	<br>
	<?php echo Form::submit('submit', 'Submit')?>
<?php echo Form::close();?>